package com.ziven.learn.main;

import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.ziven.easygo.ui.AbstractEasyViewHolder;
import com.ziven.learn.R;
import com.ziven.processor.LearnBaseBean;

class MainHolder extends AbstractEasyViewHolder<LearnBaseBean> {

    public MainHolder(@NonNull ViewGroup parent, int layoutId) {
        super(parent, layoutId);
    }

    @Override
    protected void bindLayout(LearnBaseBean data, int position) {
        setText(R.id.item_view, data.title);
        setOnItemClickListener(R.id.item_view, data, position);
    }
}
